package serializable.demo;

import java.io.FileOutputStream;
import java.io.ObjectOutputStream;

public class SerializableDemo {
	public static void main(String[] args) {
		try {
			FileOutputStream fos = new FileOutputStream("1.so");
			ObjectOutputStream oos = new ObjectOutputStream(fos);
			oos.writeObject(new Person("http://shouji.gexing.com/v1.1/list.shaitu.php", 12));
			oos.flush();
			oos.close();
			fos.flush();
			fos.close();
		} catch (Exception e) {
			
		}
	}
}
